package cn.iocoder.yudao.framework.region.vo;

import cn.iocoder.yudao.framework.region.vo.setter.ProvinceAutoSetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  使用 Lombok 时需注意标记上 {@code @Accessors(chain = false)}
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2024/05/26
 */
@Data
public class ProvinceVO implements Serializable, ProvinceAutoSetter {

    @Schema(description = "省份编码", example = "520000")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String provinceCode;

    @Schema(description = "省份名称", example = "贵州省")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String provinceName;

    @Override
    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    @Override
    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

}
